import Vue from 'vue'
import App from './App'
import mixin from './class/mixin.js'
import api from './api.js'

Vue.mixin(mixin)
Vue.prototype.$api = api;
Vue.config.productionTip = false

import vBase from './vBase/index.js'
Vue.use(vBase, {
    onLoginSuccess: function (e) {
        uni.reLaunch({
            url: "/pages/menu/menu"
        })
    },
    onLoginError: function () {
        uni.reLaunch({
            url: "/pages/login/login"
        })
    }
})
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
